package game;

import com.golden.gamedev.object.Sprite;
import com.golden.gamedev.object.collision.BasicCollisionGroup;

public class EnemyTreasureCollision extends BasicCollisionGroup
{

	@Override
	public void collided(Sprite s1, Sprite s2)
	{
		/*
		 * Damage the treasure by the right amount.
		 */
		((Treasure)s2).damage(((Enemy)s1).getDamage());
	}

}
